package com.gl.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.context.annotation.Configuration;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * <p>Description:Spring IOC容器初始化结束后加载</p>
 * @author gaol
 * @version 1.0
 * @date 2017/5/16
 */
@Configuration
public class AppliccationInit implements ServletContextInitializer {


    private static Logger logger= LoggerFactory.getLogger(AppliccationInit.class);


    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        logger.info("Spring IOC容器初始化完成...");
    }
}
